package com.example.book.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
public class PageRequest {
    private Integer limit = 10;
    private Integer pageNumber = 1;
    private Integer offset;

    public void setOffset() {
        offset = (pageNumber - 1) * limit;
    }
}
